package com.dvd.lia.glia001;
import org.hibernate.Transaction;
import org.hibernate.criterion.*;
import  com.dvd.dao.usr.*;
public class GLIA001Model {
	public boolean searchAdminInfo(String FLoginId,String FPwd)
	{
		TUsrDAO dao = new TUsrDAO();
		boolean result=false;
		Transaction tran = dao.getSession().beginTransaction();
		result=!dao.getSession().createCriteria(TUsr.class).
		add(Expression.eq("FLoginId", FLoginId)).
		add(Expression.eq("FPwd", FPwd)).list().isEmpty();	
		tran.commit();
		dao.getSession().close();
		return result;
	}

}
